CFLAG = -I../../../mqthird/include																			#编译选项
LFLAG = -L../../../mqthird/lib -lgtest -lprotobuf -pthread  -lmuduo_net -lmuduo_base -lz 					#链接选项

all:protobuf_client protobuf_server
protobuf_server:protobuf_server.cpp request.pb.cc ../../../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++17 $(CFLAG) $^ -o $@ $(LFLAG)
protobuf_client:protobuf_client.cpp request.pb.cc ../../../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++17 $(CFLAG) $^ -o $@ $(LFLAG)
.PHONT:clean
clean:
	rm -rf protobuf_server protobuf_client